package com.atguigu.gmall.order.service;

import com.atguigu.gmall.model.order.OrderDetail;
import com.atguigu.gmall.model.order.OrderInfo;

import java.util.List;
import java.util.Map;

/**
 * @author: 李旭
 * @create: 2021-07-23 15:44
 **/
public interface OrderInfoService {
    boolean isHave(OrderDetail orderDetail);

    Long saveOrder(OrderInfo orderInfo);

    void cancelOrderInfo(Long orderId);

    OrderInfo getOrderInfo(Long orderId);

    void updateOrderStatus(Long orderId);

    List<OrderInfo> orderSplit(Long orderId, String wareSkuMap);

    //初始化 发送库存微服务所需要的数据
    public Map initWareData(OrderInfo orderInfo);
}
